
class NoticeLabelList {
  int? code;
  List<NoticeLabelItem>? data;
  String? message;
  String? requestNo;
  bool? successful;

  NoticeLabelList({this.code, this.data, this.message, this.requestNo, this.successful});

  NoticeLabelList.fromJson(Map<String, dynamic> json) {
    if(json["code"] is num) {
      code = (json["code"] as num).toInt();
    }
    if(json["data"] is List) {
      data = json["data"] == null ? null : (json["data"] as List).map((e) => NoticeLabelItem.fromJson(e)).toList();
    }
    if(json["message"] is String) {
      message = json["message"];
    }
    if(json["requestNo"] is String) {
      requestNo = json["requestNo"];
    }
    if(json["successful"] is bool) {
      successful = json["successful"];
    }
  }

  static List<NoticeLabelList> fromList(List<Map<String, dynamic>> list) {
    return list.map(NoticeLabelList.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["code"] = code;
    if(data != null) {
      _data["data"] = data?.map((e) => e.toJson()).toList();
    }
    _data["message"] = message;
    _data["requestNo"] = requestNo;
    _data["successful"] = successful;
    return _data;
  }

  NoticeLabelList copyWith({
    int? code,
    List<NoticeLabelItem>? data,
    String? message,
    String? requestNo,
    bool? successful,
  }) => NoticeLabelList(
    code: code ?? this.code,
    data: data ?? this.data,
    message: message ?? this.message,
    requestNo: requestNo ?? this.requestNo,
    successful: successful ?? this.successful,
  );
}

class NoticeLabelItem {
  String? createTime;
  int? id;
  int? sort;
  String? title;

  NoticeLabelItem({this.createTime, this.id, this.sort, this.title});

  NoticeLabelItem.fromJson(Map<String, dynamic> json) {
    if(json["createTime"] is String) {
      createTime = json["createTime"];
    }
    if(json["id"] is num) {
      id = (json["id"] as num).toInt();
    }
    if(json["sort"] is num) {
      sort = (json["sort"] as num).toInt();
    }
    if(json["title"] is String) {
      title = json["title"];
    }
  }

  static List<NoticeLabelItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(NoticeLabelItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["createTime"] = createTime;
    _data["id"] = id;
    _data["sort"] = sort;
    _data["title"] = title;
    return _data;
  }

  NoticeLabelItem copyWith({
    String? createTime,
    int? id,
    int? sort,
    String? title,
  }) => NoticeLabelItem(
    createTime: createTime ?? this.createTime,
    id: id ?? this.id,
    sort: sort ?? this.sort,
    title: title ?? this.title,
  );
}